<div class="main-content-header">
	<ul class="sort-tab" id="GamesTabCate">
		<li><a href="#" title="Ứng dụng Tải nhiều nhất" rel="down"
			class="tai-tab">Mới nhất</a>
		</li>
	</ul>
</div>
<div id="product-by-type-new-1" class="main-content-body">
	<ul class="app-list" id="ListProduct">
		<?php if($allitems <> null):?>
			<?php foreach($allitems as $row):?>
		<li>
			<div class="app-box">
				<div class="app-thumb">
					<img style="display: inline;"
						src="<?php echo base_url('src/imagescontent/'.$row->images)?>"
						data-original="<?php echo base_url('src/imagescontent/'.$row->images)?>"
						alt="Tải app <?php echo $row->namecontent;?>" class="lazy"> <a
						href="<?php echo base_url."home/appdetail/".mb_strtolower(url_title(removesign($row->namecontent)))?>"
						class="mask white-mask" title="Tải app <?php echo $row->namecontent?>"></a>
				</div>
				<!--end .app-thumb-->
				<p class="app-title-2 center">
					<a href="<?php echo base_url."home/appdetail/".mb_strtolower(url_title(removesign($row->namecontent)))?>"
						title="Tải app <?php echo $row->namecontent;?>"><?php echo $row->namecontent;?></a>
				</p>
				<p class="app-fact-2  center">
					 
					 <?php foreach($types as $type):?>
						<?php if($row->typeid == $type->id):?>
						<?php echo $type->nametype;?>
						<?php endif;?>
					<?php endforeach;?> - 
					<?php foreach($caties as $cate):?>
						<?php if($row->cateid == $cate->id):?>
							<?php echo $cate->catename;?>
						<?php endif;?>
					<?php endforeach;?>
				</p>
				<p class="ellipsis  center"><?php echo $row->countlog;?></p>
				<ul id="ratestars" class="Star star-center">
					<li><a data-score="1" class="pRating" href="javascript:void(0);"></a>
					</li>

					<li><a data-score="1" class="pRating" href="javascript:void(0);"></a>
					</li>

					<li><a data-score="1" class="pRating" href="javascript:void(0);"></a>
					</li>

					<li><a data-score="1" class="pRating" href="javascript:void(0);"></a>
					</li>

					<li><a data-score="1" class="pRating" href="javascript:void(0);"></a>
					</li>

				</ul>
				<?php if( $this->session->userdata('upid') <> 0):?>
				<a href="<?php echo base_url('apps/'.$row->ifiles)?>" id="111595"
					class="download-btn Download">Tải</a>
					<?php else:?>
					<a href="#" id="111595"
					class="download-btn Download">Tải</a>
					<?php endif;?>
			</div> <!--end .app-box-->
		</li>
		<?php endforeach;?>
	<?php endif;?>
	</ul>
 
	<div class="clear"></div>
	<div id="PageNavId">
		<div class="pagination">
		 <?php echo $pages;?>
		</div>

	</div>